home *** CD-ROM | disk | FTP | other *** search
- #include <exec/types.h>
-
- /* This example should cause an exception in a subroutine
- * The ppc.library`s stackdumb should show the different
- * stack frames which the code created before the exception
- * happened.
- */
-
- void test1(void);
-
- void main(void)
- {
- // *((int*) 0x4f000000) = 0;
- // *((int*) 0x00300000) = 0;
- test1();
- }
-
- void test4(void)
- {
- asm("tw 31,0,0");
- }
-
- void test3(void)
- {
- test4();
- }
-
- void test2(void)
- {
- test3();
- }
-
- void test1(void)
- {
- test2();
- }
-
-